#include <stdio.h>
#include <string.h>
#include <ctype.h>

int isalphabetic(char c) {
    if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) {
        return 1;
    }
    else {
        return 0;
    }
}

int findLongWord(char *str) {
    int i, j, len, longBegin, maxLen;
    i = 0;
    len = strlen(str);
    while (i < len && !isalphabetic(str[i])) ++i;

    longBegin = 0;
    maxLen = 0;
    while (i < len) {
        j = i;
        while (j < len && isalphabetic(str[j])) ++j;
        if (maxLen <= j - i) {
            maxLen = j - i;
            longBegin = i;
        }
        while (j < len && !isalphabetic(str[j])) ++j;
        i = j;
    }
    return longBegin;
}

int main(void) {
    char str[100];
    int i;
    gets(str);
    printf("word=");

    for (i=findLongWord(str); isalphabetic(str[i]); ++i) {
        printf("%c", str[i]);
    }

    return 0;
}